//
//  Information.m
//  RedManStock
//
//  Created by lanou3g on 15/7/25.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "Information.h"

@implementation Information


-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    if ([key isEqualToString:@"date"]) {
        
        NSDate *nd = [NSDate dateWithTimeIntervalSince1970:(CGFloat)[value floatValue]];
        
        NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
        [dateFormatter setDateFormat:@"yyyy-MM-dd"];
        
        NSString *date = [dateFormatter stringFromDate:nd];
        _dateSB = date;
        
    }
    
    
}







@end
